<?php

class big
{
    function  ketnoi($query)
    {
        $connect=mysql_connect("localhost","root","vertrigo");
        my_sql_select_db("docs",$connect);
        my_query("SET charavter_result_utf8");
        $ret = mysql_query($query,$connect);
        $data = array();
        while ($row = mysql_fetch_assoc($ret))
        {
            $data[]=$row;
        }
        return $data;
    }
    function xemtatca($noixem)
    {
        $query = "SELECT * FROM"+$noixem;
        $this->ketnoi($query);
    }
    function xem($noixem,$noicanxem)
    {
        $query="SELECT * FORM"+ $noixem +"WHERE"+$noicanxem;
        $this->ketnoi($query);
    }
    function them($noithem,$noicanthem)
    {
        $query="SELECT * FORM"+ $noithem +"WHERE"+$noicanbthem;
        $this->ketnoi($query);
    }
    
    
}
